<?php
/**
 * Created by PhpStorm.
 * User: rabbibox
 * Date: 2017/10/18
 * Time: 16:41
 */

namespace common\services;


use common\models\Settings;
use yii\base\Object;

class Setting extends Object {

  static public function read($key){
    return Settings::findActive()->select('option_val')->andWhere(['option_key' => $key])->scalar();
  }

}